import Vue from 'vue'
import Vuex from 'vuex'
import * as actions from './actions'
import * as mutations from './mutations'
import * as getters from './getters'

Vue.use(Vuex);

// 管理状态
const state = {
    isAuthenticated:false, //是否授权   
    user:{},
    profile:{},//存储用户个人信息
    loading:false
}
export default new Vuex.Store({
    state,
    getters,
    mutations,
    actions
})